import request from '@/utils/request'

// 登录接口
export const reqLogin = (data) => {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}
// 获取个人信息
export function getUserInfo() {
  return request({
    method: 'post',
    url: '/sys/profile'
    // headers: {
    //   Authorization: `Bearer ${store.getters.token}`
    // }
  })
}

export function reqGetUserDetailById(id) {
  return request({
    method: 'get',
    url: `/sys/user/${id}` // 员工个人信息id
  })
}

// 获取简单员工列表（部门负责人）
export const reqGetSimpleList = () => {
  return request({
    method: 'get',
    url: '/sys/user/simple'
  })
}
